package com.hsm4;

public class TestCompareTo {
    public static void main(String[] args) {
        Student s1 = new Student(20,"hsm",165.12);
        Student s2 = new Student(22,"cy",179.99);
        //方法重写的是比较两个学生的年龄、身高、姓名
        System.out.println(s1.compareTo(s2));

    }
}
